package Y2024.M11.D5;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-11-05
 * Time: 9:51
 */
public class Main {
    public static void main(String[] args) {
        Test test=new Test();
        test.main();


    }
}

class Test {
    public static void main() {
        new B();
    }
}
class A {
    int i = 7;
    public A() {
        setI(20);
        System.out.println("i from A is " + i);
    }
    public void setI(int i) {
        this.i = 2 * i;
    }
}
class B extends A {
    public B() {
        // System.out.println("i from B is " + i);
    }
    public void setI(int i) {
        this.i = 3 * i;
    }
}

